package net.daoke.relation.model.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import net.daoke.relation.enums.ProtocolEnum;

@Data
@Schema(title = "AddNetRelationVO", description = "添加网络关系请求体")
public class AddNetRelationVO {
    // 五元组
    @Schema(title = "sourceIp", description = "源IP", defaultValue = "192.168.0.1")
    @NotNull(message = "源IP不能为空")
    private String sourceIp;

    @Schema(title = "sourcePort", description = "源端口")
    private Integer sourcePort;

    @Schema(title = "protocol", description = "协议")
    @NotNull(message = "协议不能为空")
    private ProtocolEnum protocol;

    @Schema(title = "destinationIp", description = "目标IP", defaultValue = "192.168.0.2")
    @NotNull(message = "目标IP不能为空")
    private String destinationIp;

    @Schema(title = "destinationPort", description = "目标端口")
    @NotNull(message = "目标端口不能为空")
    private Integer destinationPort;

    @Schema(title = "proxyPort", description = "代理端口")
    private Integer proxyPort;

}
